CompositionRegistry

StockSharp.Diagram

Реализация ICompositionRegistry по умолчанию.

Реализует: ICompositionRegistry

Конструкторы

CompositionRegistry
public CompositionRegistry(Func<ICompositionModelBehavior<TNode, TLink>> createBehavior)
compositionRegistry = CompositionRegistry(createBehavior)

Инициализирует новый экземпляр CompositionRegistry.

createBehavior
ICompositionModelBehavior

Свойства

DiagramElements
public INotifyList<DiagramElement> DiagramElements { get; }
value = compositionRegistry.DiagramElements

Список элементов.

Методы

CreateComposition
public CompositionDiagramElement CreateComposition()
result = compositionRegistry.CreateComposition()

Создайте экземпляр CompositionDiagramElement.

Возвращает: CompositionDiagramElement

Deserialize
public bool Deserialize(CompositionDiagramElement element, SettingsStorage container, Func<SecureString> getPassword)
result = compositionRegistry.Deserialize(element, container, getPassword)

Десериализовать составной элемент.

element
CompositionDiagramElement
storage
Хранилище настроек.
getPassword
Получить обработчик паролей.

Возвращает: Используется ли шифрование.

Serialize
public void Serialize(CompositionDiagramElement element, SettingsStorage container, bool includeCoordinates, SecureString password)
compositionRegistry.Serialize(element, container, includeCoordinates, password)

Сериализация составного элемента.

element
CompositionDiagramElement
storage
Хранилище настроек.
includeCoordinates
Включите координаты.
password
Пароль.

Возвращает: Хранилище настроек.